home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / VIEWEX.PAK / SPLITTER.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  78 lines

  1. // splitter.h : custom splitter control and frame that contains it
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CSplitterFrame frame with splitter/wiper
  15.  
  16. class CSplitterFrame : public CMDIChildWnd
  17. {
  18.     DECLARE_DYNCREATE(CSplitterFrame)
  19. protected:
  20.     CSplitterFrame();   // protected constructor used by dynamic creation
  21.  
  22. // Attributes
  23. protected:
  24.     CSplitterWnd m_wndSplitter;
  25.  
  26. // Implementation
  27. public:
  28.     virtual ~CSplitterFrame();
  29.     virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  30.  
  31.     // Generated message map functions
  32.     //{{AFX_MSG(CSplitterFrame)
  33.     //}}AFX_MSG
  34.     DECLARE_MESSAGE_MAP()
  35. };
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // 
  39.  
  40. class CViewExSplitWnd : public CSplitterWnd
  41. {
  42.     DECLARE_DYNAMIC(CViewExSplitWnd)
  43.  
  44. // Implementation
  45. public:
  46.     CViewExSplitWnd();
  47.     ~CViewExSplitWnd();
  48.     CWnd* GetActivePane(int* pRow = NULL, int* pCol = NULL);
  49. };
  50.  
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. //
  54.  
  55. class C3WaySplitterFrame : public CMDIChildWnd
  56. {
  57.     DECLARE_DYNCREATE(C3WaySplitterFrame)
  58. protected:
  59.     C3WaySplitterFrame();   // protected constructor used by dynamic creation
  60.  
  61. // Attributes
  62. protected:
  63.     CViewExSplitWnd m_wndSplitter;
  64.     CViewExSplitWnd m_wndSplitter2;        // embedded in the first
  65.  
  66. // Implementation
  67. public:
  68.     virtual ~C3WaySplitterFrame();
  69.     virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  70.  
  71.     // Generated message map functions
  72.     //{{AFX_MSG(C3WaySplitterFrame)
  73.     //}}AFX_MSG
  74.     DECLARE_MESSAGE_MAP()
  75. };
  76.  
  77. /////////////////////////////////////////////////////////////////////////////
  78.